package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.operate.OperateDO;
import com.qk.dto.operate.OperateDTO;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author MrZhao
 * @created 2025-10-17 17:04
 * @description
 *
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    @GetMapping
   public Result list(OperateDTO dto){
        PageResult<OperateDO> pageResult = operateLogService.list(dto);
        return Result.success(pageResult);
   }
}